package de.dqi.pong.menu;

import java.awt.Font;

import javax.swing.*;

/**
 * TODO OptionMenu - finish class definition
 * <hr>
 * 
 * <hr><dl><dt>
 * Summary: </dt><br><dd>
 *  
 * </dd><br><dt>
 * Author: </dt><br><dd>
 *  Melina
 * </dd></dl>
 */
public class OptionMenu
		extends MenuPanel {
	
	
	private static final long	serialVersionUID	= 6292949248291295930L;
	
	public OptionMenu(JPanel startGui) {
		this.setName("PONG");
		this.addKeyListener(de.dqi.pong.Input.instance);
		setSize(250, 300);
		setLayout(null);
		
		parent = startGui;
		
		JLabel text = new JLabel();
		text.setText("Options");
		text.setHorizontalAlignment(SwingConstants.CENTER);
		text.setFont(new Font("Times New Roman", Font.BOLD, 30));
		text.setBounds(0, 0, 250, 50);
		add(text);
		
		JButton game = new MenuButton(7);
		game.setText("Game Variables");
		game.setBounds(0, 50, 250, 50);
		game.addActionListener(MenuListener.getInstance());
		add(game);
		
		JButton grafic = new MenuButton(8);
		grafic.setText("Graphics");
		grafic.setBounds(0, 100, 250, 50);
		grafic.addActionListener(MenuListener.getInstance());
		add(grafic);
		
		JButton key = new MenuButton(9);
		key.setText("Keyboard Assignments");
		key.setBounds(0, 150, 250, 50);
		key.addActionListener(MenuListener.getInstance());
		add(key);
		
		JButton back = new MenuButton(0);
		back.setText("Back");
		back.setBounds(0, 250, 250, 50);
		back.addActionListener(MenuListener.getInstance());
		add(back);
		
		
	}
}